const routes = [
  {
    path: '/auth',
    component: () => import('layouts/LoginLayout.vue'),
    children: [
      { path: 'login', component: () => import('pages/LoginPage.vue') }
    ]
  },
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    children: [
      { path: '', component: () => import('pages/IndexPage.vue') },
      { path: 'user/add', component: () => import('pages/UserAdd.vue') },
      { path: 'user/info', name:"user/info", component: () => import('pages/UserEdit.vue') },
      { path: 'user', component: () => import('pages/UserList.vue') },
      { path: 'exhibition/edit', component: () => import('pages/ExhibitionEdit.vue') },
      { path: 'exhibition/create', component: () => import('pages/ExhibitionCreate.vue') },
      { path: 'exhibition', component: () => import('pages/ExhibitionList.vue') },
      { path: 'operation_log', component: () => import('pages/OperationLog.vue') }

    ]
  },

  // Always leave this as last one,
  // but you can also remove it
  {
    path: '/:catchAll(.*)*',
    component: () => import('pages/ErrorNotFound.vue')
  }
]

export default routes
